public class SeederCommand implements Command {
    private FarmMachine machine;

    public SeederCommand(FarmMachine machine) {
        this.machine = machine;
    }

    @Override
    public void execute() {
        if (machine != null) {
            machine.work();
        }
    }
}